package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import java.text.DateFormat;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Entity
@Table(name = "bigTag")
public class BigTag extends BasicModel{
	@Column(name = "content")
	public String content;
	
	@Column(name = "color")
	public String color;
	
	public static boolean matchTheColor(String color)
	{
		Pattern pattern = Pattern.compile("^[0-9a-fA-F]{6}$");     
	     Matcher matcher = pattern.matcher(color);   
	     return matcher.matches();
	}
	
}
